<!DOCTYPE html>
<html>
<head>
    {include file="../application/common/header.html" /}
</head>

<body>
    <div id="class_teachertb">
        <form id="class_teacherForm" class="m5">
            年级：
            <select class="form-control1" name="grade" id="grade"></select>
            <a class="easyui-linkbutton l-btn l-btn-small" data-options="iconCls:'icon-search'" onclick="searchForm('class_teacher')">查询</a>
            <a class="easyui-linkbutton l-btn l-btn-small" data-options="iconCls:'icon-clear'" onclick="resetForm('class_teacher')">重置</a><br/>
        </form>
    </div>
    <table id="class_teacherdg">
        <thead>
            <tr>
                <th data-options="field:'ID',checkbox:true">ID</th>
                <th data-options="field:'年级号',title:'年级',width:15,editor:{
                    type:'combobox',
                    options:{
                        editable:false,
                        panelHeight:'auto',
                        required:true,
                        url:'/compent/Util/gradeList'
                    }
                },
                formatter:function(value,row,index){
                    return row.gradeName;
                }"></th>
                <th data-options="field:'班号',title:'班号',width:20,editor:{type:'numberbox',options:{required:true}}"></th>
                <th data-options="field:'班主任ID',title:'班主任',width:20,editor:{
                    type:'combobox',
                    options:{
                        method:'get',
                        url: '/compent/Util/teacherList.html',
                        required:true
                    }
                },
                formatter:function(value,row,index){
                    return row.班主任;
                }"></th>
            </tr>
        </thead>
    </table>
    <script type="text/javascript">
        $(function(){
            var url = "/sysAdmin/class_teacher";
            initDatagridAdmin("class_teacher", url, 1, 1, 1, 1);
            initGrade("class_teacher");
        })
    </script>

</body>
</html>